﻿
using SaaS.Model.Enums;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using XCore.Domain.Entities;

namespace SaaS.Model.Entity.Blogs
{
    /// <summary>
    /// 博客菜单
    /// </summary>
    [Table("Blog_Menus")]
    public class BlogMenu : Entity<int>
    {
        /// <summary>
        /// 文章Id
        /// </summary>
        public int? ParentId { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [StringLength(32)]
        [Required]
        public string Title { get; set; }
        /// <summary>
        /// 跳转类型
        /// </summary>
        public TargetType Type { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [StringLength(32)]
        public string Path { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public short Sort { get; set; }
        /// <summary>
        /// 是否可见
        /// </summary>
        public bool IsVisble { get; set; }
    }
}
